const merchantService = require('../../service/merchantService');
const merchantRouter = {
  prefix: '/merchant',
  routers: [
    {
      method: 'get',
      url: '/findMyMerchant',
      handler: merchantService.findMyMerchant
    },
    {
      method: 'get',
      handler: merchantService.find
    },
    {
      method: 'post',
      handler: merchantService.create
    },
    {
      method: 'put',
      handler: merchantService.update
    }
  ]
}

module.exports = merchantRouter;